import { Image as AntdImage, ImageProps } from "antd";
import { CSSProperties } from "react";

export default function Image(props: ImageProps){
  return <AntdImage
    preview={false}
    {...props}
    style={{
      objectFit: 'cover',
      ...props.style,
    } as CSSProperties}
  />
}
